﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services
{
   public class CategoryMapping
    {
       public static Category ConvertToEntity( ViewModelCategory model)
       {
           Category entity = new Category();
           entity.Id = model.Id;
           entity.Name = model.Name;
           entity.Status = model.Status;
           return entity;
       }
    }
}
